package com.fcl.blog.mapper;


import com.fcl.blog.po.Tag;
import com.fcl.blog.vo.TagVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 付
 * @Date 2023/10/18 15:34
 * @Version 1.0
 * @description
 * @since 1.0
 */
@Repository
@Mapper
public interface TagMapper {
    List<Tag> findListTag();

    int insertTag(@Param("tag") TagVo tag);

    Tag selectByName(@Param("name") String name);

    int deleteById(@Param("id") Long id);

    int updateTag(@Param("tag") TagVo tagVo);


}
